.class public Lcom/example/m6shop/GoodsShowActivity;
.super Landroid/app/Activity;
.source "GoodsShowActivity.java"


# static fields
.field public static h:Landroid/os/Handler;

.field public static me:Lcom/example/m6shop/GoodsShowActivity;


# instance fields
.field UppicPath:Ljava/lang/String;

.field adapter:Ladapter/NatureAdapter;

.field adapter2:Ladapter/NatureAdapter;

.field adapter3:Ladapter/NatureAdapter;

.field attr1:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field attr2:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field attr3:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field bagcost:Ljava/lang/String;

.field private bt_addaddr:Landroid/widget/Button;

.field btn2:Landroid/widget/Button;

.field btn3:Landroid/widget/Button;

.field btn4:Landroid/widget/Button;

.field button1:Landroid/widget/Button;

.field changeflag:Ljava/lang/String;

.field private checkBoxs:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/widget/CheckBox;",
            ">;"
        }
    .end annotation
.end field

.field private checkBoxs2:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/widget/CheckBox;",
            ">;"
        }
    .end annotation
.end field

.field private choiceggid1:Ljava/lang/String;

.field private choiceggid2:Ljava/lang/String;

.field cost:Ljava/lang/String;

.field dataarray:Lorg/json/JSONObject;

.field private fggids:Ljava/lang/String;

.field flag1:Z

.field flag2:Z

.field private gg_scost:Ljava/lang/String;

.field private gg_sids1:Ljava/lang/String;

.field private gg_sids2:Ljava/lang/String;

.field private gg_sstock:Ljava/lang/String;

.field gglist:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field goodsid:Ljava/lang/String;

.field goodslogo:Landroid/widget/ImageView;

.field private http:Ljava/lang/String;

.field private is_shot:Z

.field list:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field listdet:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GgBean;",
            ">;"
        }
    .end annotation
.end field

.field listdet2:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GgBean;",
            ">;"
        }
    .end annotation
.end field

.field lsp:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/ProBean;",
            ">;"
        }
    .end annotation
.end field

.field private lv:Landroid/widget/ListView;

.field m:Lmyapp/MyApp;

.field private mPopupWindow:Landroid/widget/PopupWindow;

.field map:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation
.end field

.field private mcontext:Landroid/content/Context;

.field myImage:Landroid/graphics/drawable/Drawable;

.field myLoginView:Landroid/view/View;

.field name:Ljava/lang/String;

.field orderCc:Ljava/lang/String;

.field picPath:Ljava/lang/String;

.field private popView:Landroid/view/View;

.field private popWin:Landroid/widget/PopupWindow;

.field productid:Ljava/lang/String;

.field rb11:Landroid/widget/RadioButton;

.field rb12:Landroid/widget/RadioButton;

.field rb13:Landroid/widget/RadioButton;

.field rb21:Landroid/widget/RadioButton;

.field rb22:Landroid/widget/RadioButton;

.field rb23:Landroid/widget/RadioButton;

.field rb24:Landroid/widget/RadioButton;

.field rg:Landroid/widget/RadioGroup;

.field rg2:Landroid/widget/RadioGroup;

.field stock:Ljava/lang/String;

.field typeid:Ljava/lang/String;

.field typenamevalue:Ljava/lang/String;

.field private typestr:Ljava/lang/String;

.field width:I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 87
    const/4 v0, 0x0

    sput-object v0, Lcom/example/m6shop/GoodsShowActivity;->h:Landroid/os/Handler;

    .line 96
    return-void
.end method

.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 81
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 82
    iput-object v1, p0, Lcom/example/m6shop/GoodsShowActivity;->m:Lmyapp/MyApp;

    .line 83
    iput-object v1, p0, Lcom/example/m6shop/GoodsShowActivity;->typeid:Ljava/lang/String;

    .line 84
    iput-object v1, p0, Lcom/example/m6shop/GoodsShowActivity;->name:Ljava/lang/String;

    .line 85
    iput-object v1, p0, Lcom/example/m6shop/GoodsShowActivity;->goodsid:Ljava/lang/String;

    .line 86
    iput-object v1, p0, Lcom/example/m6shop/GoodsShowActivity;->typenamevalue:Ljava/lang/String;

    .line 89
    iput-object v1, p0, Lcom/example/m6shop/GoodsShowActivity;->dataarray:Lorg/json/JSONObject;

    .line 90
    iput v2, p0, Lcom/example/m6shop/GoodsShowActivity;->width:I

    .line 91
    iput-object v1, p0, Lcom/example/m6shop/GoodsShowActivity;->button1:Landroid/widget/Button;

    .line 92
    iput-object v1, p0, Lcom/example/m6shop/GoodsShowActivity;->btn2:Landroid/widget/Button;

    .line 93
    iput-object v1, p0, Lcom/example/m6shop/GoodsShowActivity;->btn3:Landroid/widget/Button;

    .line 94
    iput-object v1, p0, Lcom/example/m6shop/GoodsShowActivity;->btn4:Landroid/widget/Button;

    .line 95
    iput-object v1, p0, Lcom/example/m6shop/GoodsShowActivity;->goodslogo:Landroid/widget/ImageView;

    .line 98
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6shop/GoodsShowActivity;->orderCc:Ljava/lang/String;

    .line 111
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6shop/GoodsShowActivity;->typestr:Ljava/lang/String;

    .line 112
    iput-object v1, p0, Lcom/example/m6shop/GoodsShowActivity;->picPath:Ljava/lang/String;

    .line 113
    iput-object v1, p0, Lcom/example/m6shop/GoodsShowActivity;->UppicPath:Ljava/lang/String;

    .line 120
    iput-boolean v2, p0, Lcom/example/m6shop/GoodsShowActivity;->flag1:Z

    iput-boolean v2, p0, Lcom/example/m6shop/GoodsShowActivity;->flag2:Z

    .line 125
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6shop/GoodsShowActivity;->checkBoxs:Ljava/util/List;

    .line 127
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6shop/GoodsShowActivity;->checkBoxs2:Ljava/util/List;

    .line 129
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6shop/GoodsShowActivity;->choiceggid1:Ljava/lang/String;

    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6shop/GoodsShowActivity;->choiceggid2:Ljava/lang/String;

    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6shop/GoodsShowActivity;->gg_sstock:Ljava/lang/String;

    .line 130
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6shop/GoodsShowActivity;->http:Ljava/lang/String;

    .line 131
    const-string v0, "1"

    iput-object v0, p0, Lcom/example/m6shop/GoodsShowActivity;->changeflag:Ljava/lang/String;

    .line 81
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6shop/GoodsShowActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 88
    iget-object v0, p0, Lcom/example/m6shop/GoodsShowActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6shop/GoodsShowActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 111
    iget-object v0, p0, Lcom/example/m6shop/GoodsShowActivity;->typestr:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6shop/GoodsShowActivity;)Landroid/widget/PopupWindow;
    .locals 1

    .prologue
    .line 115
    iget-object v0, p0, Lcom/example/m6shop/GoodsShowActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6shop/GoodsShowActivity;)V
    .locals 0

    .prologue
    .line 405
    invoke-direct {p0}, Lcom/example/m6shop/GoodsShowActivity;->inittimeWindow()V

    return-void
.end method

.method static synthetic access$4(Lcom/example/m6shop/GoodsShowActivity;)Landroid/widget/ListView;
    .locals 1

    .prologue
    .line 118
    iget-object v0, p0, Lcom/example/m6shop/GoodsShowActivity;->lv:Landroid/widget/ListView;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6shop/GoodsShowActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 111
    iput-object p1, p0, Lcom/example/m6shop/GoodsShowActivity;->typestr:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$6(Lcom/example/m6shop/GoodsShowActivity;)Z
    .locals 1

    .prologue
    .line 116
    iget-boolean v0, p0, Lcom/example/m6shop/GoodsShowActivity;->is_shot:Z

    return v0
.end method

.method private static calculateInSampleSize(Landroid/graphics/BitmapFactory$Options;II)I
    .locals 7
    .param p0, "options"    # Landroid/graphics/BitmapFactory$Options;
    .param p1, "reqWidth"    # I
    .param p2, "reqHeight"    # I

    .prologue
    .line 825
    iget v0, p0, Landroid/graphics/BitmapFactory$Options;->outHeight:I

    .line 826
    .local v0, "height":I
    iget v3, p0, Landroid/graphics/BitmapFactory$Options;->outWidth:I

    .line 827
    .local v3, "width":I
    const/4 v2, 0x1

    .line 829
    .local v2, "inSampleSize":I
    if-gt v0, p2, :cond_0

    if-le v3, p1, :cond_1

    .line 833
    :cond_0
    int-to-float v5, v0

    .line 834
    int-to-float v6, p2

    .line 833
    div-float/2addr v5, v6

    invoke-static {v5}, Ljava/lang/Math;->round(F)I

    move-result v1

    .line 835
    .local v1, "heightRatio":I
    int-to-float v5, v3

    int-to-float v6, p1

    div-float/2addr v5, v6

    invoke-static {v5}, Ljava/lang/Math;->round(F)I

    move-result v4

    .line 841
    .local v4, "widthRatio":I
    if-ge v1, v4, :cond_2

    move v2, v4

    .line 844
    .end local v1    # "heightRatio":I
    .end local v4    # "widthRatio":I
    :cond_1
    :goto_0
    return v2

    .restart local v1    # "heightRatio":I
    .restart local v4    # "widthRatio":I
    :cond_2
    move v2, v1

    .line 841
    goto :goto_0
.end method

.method public static getPicFromBytes([BLandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
    .locals 2
    .param p0, "bytes"    # [B
    .param p1, "opts"    # Landroid/graphics/BitmapFactory$Options;

    .prologue
    const/4 v1, 0x0

    .line 1089
    if-eqz p0, :cond_1

    .line 1090
    if-eqz p1, :cond_0

    .line 1091
    array-length v0, p0

    invoke-static {p0, v1, v0, p1}, Landroid/graphics/BitmapFactory;->decodeByteArray([BIILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 1095
    :goto_0
    return-object v0

    .line 1094
    :cond_0
    array-length v0, p0

    invoke-static {p0, v1, v0}, Landroid/graphics/BitmapFactory;->decodeByteArray([BII)Landroid/graphics/Bitmap;

    move-result-object v0

    goto :goto_0

    .line 1095
    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public static getSmallBitmap(Ljava/lang/String;)Landroid/graphics/Bitmap;
    .locals 8
    .param p0, "filePath"    # Ljava/lang/String;

    .prologue
    .line 790
    new-instance v5, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v5}, Landroid/graphics/BitmapFactory$Options;-><init>()V

    .line 791
    .local v5, "options":Landroid/graphics/BitmapFactory$Options;
    const/4 v6, 0x1

    iput-boolean v6, v5, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z

    .line 792
    invoke-static {p0, v5}, Landroid/graphics/BitmapFactory;->decodeFile(Ljava/lang/String;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    .line 795
    const/16 v6, 0x1e0

    const/16 v7, 0x320

    invoke-static {v5, v6, v7}, Lcom/example/m6shop/GoodsShowActivity;->calculateInSampleSize(Landroid/graphics/BitmapFactory$Options;II)I

    move-result v6

    iput v6, v5, Landroid/graphics/BitmapFactory$Options;->inSampleSize:I

    .line 798
    const/4 v6, 0x0

    iput-boolean v6, v5, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z

    .line 800
    invoke-static {p0, v5}, Landroid/graphics/BitmapFactory;->decodeFile(Ljava/lang/String;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object v2

    .line 801
    .local v2, "bm":Landroid/graphics/Bitmap;
    if-nez v2, :cond_0

    .line 802
    const/4 v6, 0x0

    .line 819
    :goto_0
    return-object v6

    .line 804
    :cond_0
    invoke-static {p0}, Lcom/example/m6shop/GoodsShowActivity;->readPictureDegree(Ljava/lang/String;)I

    move-result v3

    .line 805
    .local v3, "degree":I
    invoke-static {v2, v3}, Lcom/example/m6shop/GoodsShowActivity;->rotateBitmap(Landroid/graphics/Bitmap;I)Landroid/graphics/Bitmap;

    move-result-object v2

    .line 806
    const/4 v0, 0x0

    .line 808
    .local v0, "baos":Ljava/io/ByteArrayOutputStream;
    :try_start_0
    new-instance v1, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v1}, Ljava/io/ByteArrayOutputStream;-><init>()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 809
    .end local v0    # "baos":Ljava/io/ByteArrayOutputStream;
    .local v1, "baos":Ljava/io/ByteArrayOutputStream;
    :try_start_1
    sget-object v6, Landroid/graphics/Bitmap$CompressFormat;->JPEG:Landroid/graphics/Bitmap$CompressFormat;

    const/16 v7, 0x1e

    invoke-virtual {v2, v6, v7, v1}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    .line 813
    if-eqz v1, :cond_1

    .line 814
    :try_start_2
    invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->close()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_1

    :cond_1
    :goto_1
    move-object v6, v2

    .line 819
    goto :goto_0

    .line 811
    .end local v1    # "baos":Ljava/io/ByteArrayOutputStream;
    .restart local v0    # "baos":Ljava/io/ByteArrayOutputStream;
    :catchall_0
    move-exception v6

    .line 813
    :goto_2
    if-eqz v0, :cond_2

    .line 814
    :try_start_3
    invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0

    .line 818
    :cond_2
    :goto_3
    throw v6

    .line 815
    :catch_0
    move-exception v4

    .line 816
    .local v4, "e":Ljava/io/IOException;
    invoke-virtual {v4}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_3

    .line 815
    .end local v0    # "baos":Ljava/io/ByteArrayOutputStream;
    .end local v4    # "e":Ljava/io/IOException;
    .restart local v1    # "baos":Ljava/io/ByteArrayOutputStream;
    :catch_1
    move-exception v4

    .line 816
    .restart local v4    # "e":Ljava/io/IOException;
    invoke-virtual {v4}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_1

    .line 811
    .end local v4    # "e":Ljava/io/IOException;
    :catchall_1
    move-exception v6

    move-object v0, v1

    .end local v1    # "baos":Ljava/io/ByteArrayOutputStream;
    .restart local v0    # "baos":Ljava/io/ByteArrayOutputStream;
    goto :goto_2
.end method

.method private inittimeWindow()V
    .locals 14

    .prologue
    const/4 v11, 0x0

    const/4 v13, -0x2

    .line 406
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v4

    .line 407
    .local v4, "layoutInflater":Landroid/view/LayoutInflater;
    const v10, 0x7f030053

    invoke-virtual {v4, v10, v11}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v6

    .line 408
    .local v6, "popupWindow":Landroid/view/View;
    const v10, 0x7f070246

    invoke-virtual {v6, v10}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/LinearLayout;

    .line 413
    .local v7, "selectview":Landroid/widget/LinearLayout;
    :try_start_0
    new-instance v3, Lorg/json/JSONObject;

    iget-object v10, p0, Lcom/example/m6shop/GoodsShowActivity;->typestr:Ljava/lang/String;

    invoke-direct {v3, v10}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 414
    .local v3, "json":Lorg/json/JSONObject;
    const-string v10, "msg"

    invoke-virtual {v3, v10}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    .line 415
    .local v2, "jarray":Lorg/json/JSONObject;
    const-string v10, "typelist"

    invoke-virtual {v2, v10}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v5

    .line 416
    .local v5, "myarray":Lorg/json/JSONArray;
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_0
    invoke-virtual {v5}, Lorg/json/JSONArray;->length()I
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    move-result v10

    if-lt v1, v10, :cond_0

    .line 455
    .end local v1    # "i":I
    .end local v2    # "jarray":Lorg/json/JSONObject;
    .end local v3    # "json":Lorg/json/JSONObject;
    .end local v5    # "myarray":Lorg/json/JSONArray;
    :goto_1
    invoke-virtual {p0}, Lcom/example/m6shop/GoodsShowActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v10

    invoke-interface {v10}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v10

    invoke-virtual {v10}, Landroid/view/Display;->getWidth()I

    .line 456
    new-instance v10, Landroid/widget/PopupWindow;

    invoke-direct {v10, v6, v13, v13}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    iput-object v10, p0, Lcom/example/m6shop/GoodsShowActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    .line 457
    invoke-virtual {p0}, Lcom/example/m6shop/GoodsShowActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v10

    invoke-interface {v10}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v10

    invoke-virtual {v10}, Landroid/view/Display;->getHeight()I

    .line 458
    iget-object v10, p0, Lcom/example/m6shop/GoodsShowActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v10}, Landroid/widget/PopupWindow;->getWidth()I

    .line 459
    iget-object v10, p0, Lcom/example/m6shop/GoodsShowActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v10}, Landroid/widget/PopupWindow;->getHeight()I

    .line 460
    return-void

    .line 420
    .restart local v1    # "i":I
    .restart local v2    # "jarray":Lorg/json/JSONObject;
    .restart local v3    # "json":Lorg/json/JSONObject;
    .restart local v5    # "myarray":Lorg/json/JSONArray;
    :cond_0
    :try_start_1
    iget-object v10, p0, Lcom/example/m6shop/GoodsShowActivity;->mcontext:Landroid/content/Context;

    const v11, 0x7f030051

    const/4 v12, 0x0

    invoke-static {v10, v11, v12}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v8

    .line 421
    .local v8, "tempview":Landroid/view/View;
    invoke-virtual {v8, v1}, Landroid/view/View;->setId(I)V

    .line 422
    const v10, 0x7f070002

    invoke-virtual {v8, v10}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v9

    check-cast v9, Landroid/widget/TextView;

    .line 423
    .local v9, "textView1":Landroid/widget/TextView;
    invoke-virtual {v5, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v10

    const-string v11, "name"

    invoke-virtual {v10, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 424
    invoke-virtual {v7, v8, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V

    .line 425
    new-instance v10, Lcom/example/m6shop/GoodsShowActivity$5;

    invoke-direct {v10, p0}, Lcom/example/m6shop/GoodsShowActivity$5;-><init>(Lcom/example/m6shop/GoodsShowActivity;)V

    invoke-virtual {v8, v10}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 416
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 451
    .end local v1    # "i":I
    .end local v2    # "jarray":Lorg/json/JSONObject;
    .end local v3    # "json":Lorg/json/JSONObject;
    .end local v5    # "myarray":Lorg/json/JSONArray;
    .end local v8    # "tempview":Landroid/view/View;
    .end local v9    # "textView1":Landroid/widget/TextView;
    :catch_0
    move-exception v0

    .line 453
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_1
.end method

.method private static readPictureDegree(Ljava/lang/String;)I
    .locals 6
    .param p0, "path"    # Ljava/lang/String;

    .prologue
    .line 756
    const/4 v0, 0x0

    .line 758
    .local v0, "degree":I
    :try_start_0
    new-instance v2, Landroid/media/ExifInterface;

    invoke-direct {v2, p0}, Landroid/media/ExifInterface;-><init>(Ljava/lang/String;)V

    .line 759
    .local v2, "exifInterface":Landroid/media/ExifInterface;
    const-string v4, "Orientation"

    const/4 v5, 0x1

    invoke-virtual {v2, v4, v5}, Landroid/media/ExifInterface;->getAttributeInt(Ljava/lang/String;I)I
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    move-result v3

    .line 760
    .local v3, "orientation":I
    packed-switch v3, :pswitch_data_0

    .line 774
    .end local v2    # "exifInterface":Landroid/media/ExifInterface;
    .end local v3    # "orientation":I
    :goto_0
    :pswitch_0
    return v0

    .line 762
    .restart local v2    # "exifInterface":Landroid/media/ExifInterface;
    .restart local v3    # "orientation":I
    :pswitch_1
    const/16 v0, 0x5a

    .line 763
    goto :goto_0

    .line 765
    :pswitch_2
    const/16 v0, 0xb4

    .line 766
    goto :goto_0

    .line 768
    :pswitch_3
    const/16 v0, 0x10e

    goto :goto_0

    .line 771
    .end local v2    # "exifInterface":Landroid/media/ExifInterface;
    .end local v3    # "orientation":I
    :catch_0
    move-exception v1

    .line 772
    .local v1, "e":Ljava/io/IOException;
    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_0

    .line 760
    nop

    :pswitch_data_0
    .packed-switch 0x3
        :pswitch_2
        :pswitch_0
        :pswitch_0
        :pswitch_1
        :pswitch_0
        :pswitch_3
    .end packed-switch
.end method

.method public static readStream(Ljava/io/InputStream;)[B
    .locals 5
    .param p0, "inStream"    # Ljava/io/InputStream;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .prologue
    .line 1099
    const/16 v4, 0x400

    new-array v0, v4, [B

    .line 1100
    .local v0, "buffer":[B
    const/4 v2, -0x1

    .line 1101
    .local v2, "len":I
    new-instance v3, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v3}, Ljava/io/ByteArrayOutputStream;-><init>()V

    .line 1102
    .local v3, "outStream":Ljava/io/ByteArrayOutputStream;
    :goto_0
    invoke-virtual {p0, v0}, Ljava/io/InputStream;->read([B)I

    move-result v2

    const/4 v4, -0x1

    if-ne v2, v4, :cond_0

    .line 1105
    invoke-virtual {v3}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v1

    .line 1106
    .local v1, "data":[B
    invoke-virtual {v3}, Ljava/io/ByteArrayOutputStream;->close()V

    .line 1107
    invoke-virtual {p0}, Ljava/io/InputStream;->close()V

    .line 1108
    return-object v1

    .line 1103
    .end local v1    # "data":[B
    :cond_0
    const/4 v4, 0x0

    invoke-virtual {v3, v0, v4, v2}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    goto :goto_0
.end method

.method private static rotateBitmap(Landroid/graphics/Bitmap;I)Landroid/graphics/Bitmap;
    .locals 7
    .param p0, "bitmap"    # Landroid/graphics/Bitmap;
    .param p1, "rotate"    # I

    .prologue
    const/4 v1, 0x0

    .line 777
    if-nez p0, :cond_0

    .line 778
    const/4 v0, 0x0

    .line 786
    :goto_0
    return-object v0

    .line 780
    :cond_0
    invoke-virtual {p0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v3

    .line 781
    .local v3, "w":I
    invoke-virtual {p0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v4

    .line 784
    .local v4, "h":I
    new-instance v5, Landroid/graphics/Matrix;

    invoke-direct {v5}, Landroid/graphics/Matrix;-><init>()V

    .line 785
    .local v5, "mtx":Landroid/graphics/Matrix;
    int-to-float v0, p1

    invoke-virtual {v5, v0}, Landroid/graphics/Matrix;->postRotate(F)Z

    .line 786
    const/4 v6, 0x1

    move-object v0, p0

    move v2, v1

    invoke-static/range {v0 .. v6}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;IIIILandroid/graphics/Matrix;Z)Landroid/graphics/Bitmap;

    move-result-object v0

    goto :goto_0
.end method

.method public static seth(Landroid/widget/ListView;)V
    .locals 7
    .param p0, "listView"    # Landroid/widget/ListView;

    .prologue
    const/4 v6, 0x0

    .line 468
    if-nez p0, :cond_1

    .line 485
    :cond_0
    :goto_0
    return-void

    .line 470
    :cond_1
    invoke-virtual {p0}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v1

    .line 471
    .local v1, "listAdapter":Landroid/widget/ListAdapter;
    if-eqz v1, :cond_0

    .line 475
    const/4 v4, 0x0

    .line 476
    .local v4, "totalHeight":I
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_1
    invoke-interface {v1}, Landroid/widget/ListAdapter;->getCount()I

    move-result v5

    if-lt v0, v5, :cond_2

    .line 481
    invoke-virtual {p0}, Landroid/widget/ListView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    .line 483
    .local v3, "params":Landroid/view/ViewGroup$LayoutParams;
    invoke-virtual {p0}, Landroid/widget/ListView;->getDividerHeight()I

    move-result v5

    invoke-interface {v1}, Landroid/widget/ListAdapter;->getCount()I

    move-result v6

    add-int/lit8 v6, v6, -0x1

    mul-int/2addr v5, v6

    add-int/2addr v5, v4

    .line 482
    iput v5, v3, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 484
    invoke-virtual {p0, v3}, Landroid/widget/ListView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    .line 477
    .end local v3    # "params":Landroid/view/ViewGroup$LayoutParams;
    :cond_2
    const/4 v5, 0x0

    invoke-interface {v1, v0, v5, p0}, Landroid/widget/ListAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 478
    .local v2, "listItem":Landroid/view/View;
    invoke-virtual {v2, v6, v6}, Landroid/view/View;->measure(II)V

    .line 479
    invoke-virtual {v2}, Landroid/view/View;->getMeasuredHeight()I

    move-result v5

    add-int/2addr v4, v5

    .line 476
    add-int/lit8 v0, v0, 0x1

    goto :goto_1
.end method

.method private uploadFile()Z
    .locals 1

    .prologue
    .line 848
    new-instance v0, Lcom/example/m6shop/GoodsShowActivity$8;

    invoke-direct {v0, p0}, Lcom/example/m6shop/GoodsShowActivity$8;-><init>(Lcom/example/m6shop/GoodsShowActivity;)V

    .line 985
    invoke-virtual {v0}, Lcom/example/m6shop/GoodsShowActivity$8;->start()V

    .line 986
    const/4 v0, 0x0

    return v0
.end method


# virtual methods
.method public getFileName(Ljava/lang/String;)Ljava/lang/String;
    .locals 4
    .param p1, "pathandname"    # Ljava/lang/String;

    .prologue
    const/4 v3, -0x1

    .line 1077
    const-string v2, "/"

    invoke-virtual {p1, v2}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v1

    .line 1078
    .local v1, "start":I
    const-string v2, "."

    invoke-virtual {p1, v2}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v0

    .line 1079
    .local v0, "end":I
    if-eq v1, v3, :cond_0

    if-eq v0, v3, :cond_0

    .line 1080
    add-int/lit8 v2, v1, 0x1

    invoke-virtual {p1, v2, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    .line 1082
    :goto_0
    return-object v2

    :cond_0
    const/4 v2, 0x0

    goto :goto_0
.end method

.method public getSource()Z
    .locals 1

    .prologue
    .line 577
    new-instance v0, Lcom/example/m6shop/GoodsShowActivity$7;

    invoke-direct {v0, p0}, Lcom/example/m6shop/GoodsShowActivity$7;-><init>(Lcom/example/m6shop/GoodsShowActivity;)V

    .line 644
    invoke-virtual {v0}, Lcom/example/m6shop/GoodsShowActivity$7;->start()V

    .line 645
    const/4 v0, 0x0

    return v0
.end method

.method public getViewByPosition(ILandroid/widget/ListView;)Landroid/view/View;
    .locals 5
    .param p1, "pos"    # I
    .param p2, "listView"    # Landroid/widget/ListView;

    .prologue
    .line 1194
    invoke-virtual {p2}, Landroid/widget/ListView;->getFirstVisiblePosition()I

    move-result v1

    .line 1196
    .local v1, "firstListItemPosition":I
    invoke-virtual {p2}, Landroid/widget/ListView;->getChildCount()I

    move-result v3

    .line 1195
    add-int/2addr v3, v1

    add-int/lit8 v2, v3, -0x1

    .line 1198
    .local v2, "lastListItemPosition":I
    if-lt p1, v1, :cond_0

    if-le p1, v2, :cond_1

    .line 1200
    :cond_0
    invoke-virtual {p2}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v3

    const/4 v4, 0x0

    invoke-interface {v3, p1, v4, p2}, Landroid/widget/ListAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    .line 1203
    :goto_0
    return-object v3

    .line 1202
    :cond_1
    sub-int v0, p1, v1

    .line 1203
    .local v0, "childIndex":I
    invoke-virtual {p2, v0}, Landroid/widget/ListView;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    goto :goto_0
.end method

.method public getggSource()Z
    .locals 1

    .prologue
    .line 991
    new-instance v0, Lcom/example/m6shop/GoodsShowActivity$9;

    invoke-direct {v0, p0}, Lcom/example/m6shop/GoodsShowActivity$9;-><init>(Lcom/example/m6shop/GoodsShowActivity;)V

    .line 1072
    invoke-virtual {v0}, Lcom/example/m6shop/GoodsShowActivity$9;->start()V

    .line 1073
    const/4 v0, 0x0

    return v0
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 14
    .param p1, "requestCode"    # I
    .param p2, "resultCode"    # I
    .param p3, "data"    # Landroid/content/Intent;

    .prologue
    .line 650
    invoke-virtual {p0}, Lcom/example/m6shop/GoodsShowActivity;->getContentResolver()Landroid/content/ContentResolver;

    .line 651
    packed-switch p1, :pswitch_data_0

    .line 730
    :cond_0
    :goto_0
    :pswitch_0
    invoke-super/range {p0 .. p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V

    .line 731
    return-void

    .line 654
    :pswitch_1
    if-eqz p3, :cond_0

    .line 655
    sget-object v11, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v12, "\u76f8\u518c\u8c03\u7528\u56fe\u7247\u8fdb\u5165\u88c1\u526a"

    invoke-virtual {v11, v12}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 656
    invoke-virtual/range {p3 .. p3}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v11

    invoke-virtual {p0, v11}, Lcom/example/m6shop/GoodsShowActivity;->startPhotoZoom(Landroid/net/Uri;)V

    goto :goto_0

    .line 662
    :pswitch_2
    new-instance v8, Ljava/io/File;

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "/temp.jpg"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-direct {v8, v11}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 663
    .local v8, "picture":Ljava/io/File;
    invoke-static {v8}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object v11

    invoke-virtual {p0, v11}, Lcom/example/m6shop/GoodsShowActivity;->startPhotoZoom(Landroid/net/Uri;)V

    goto :goto_0

    .line 676
    .end local v8    # "picture":Ljava/io/File;
    :pswitch_3
    if-eqz p3, :cond_0

    .line 677
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 679
    sget-object v11, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v12, "\u4e0a\u4f20\u88c1\u526a\u56fe\u7247"

    invoke-virtual {v11, v12}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 680
    invoke-virtual/range {p3 .. p3}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v2

    .line 681
    .local v2, "extras":Landroid/os/Bundle;
    const-string v11, "data"

    invoke-virtual {v2, v11}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Landroid/graphics/Bitmap;

    .line 683
    .local v7, "myBitmap":Landroid/graphics/Bitmap;
    const/4 v4, 0x0

    .line 686
    .local v4, "fileOutputStream":Ljava/io/FileOutputStream;
    :try_start_0
    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "/meitian_photos"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    .line 688
    .local v9, "saveDir":Ljava/lang/String;
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, v9}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 689
    .local v0, "dir":Ljava/io/File;
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v11

    if-nez v11, :cond_1

    invoke-virtual {v0}, Ljava/io/File;->mkdir()Z

    .line 691
    :cond_1
    new-instance v10, Ljava/text/SimpleDateFormat;

    const-string v11, "yyyyMMddssSSS"

    invoke-direct {v10, v11}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 692
    .local v10, "t":Ljava/text/SimpleDateFormat;
    new-instance v11, Ljava/lang/StringBuilder;

    const-string v12, "MT"

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    new-instance v12, Ljava/util/Date;

    invoke-direct {v12}, Ljava/util/Date;-><init>()V

    invoke-virtual {v10, v12}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, ".jpg"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 694
    .local v6, "filename":Ljava/lang/String;
    new-instance v3, Ljava/io/File;

    invoke-direct {v3, v9, v6}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 696
    .local v3, "file":Ljava/io/File;
    new-instance v5, Ljava/io/FileOutputStream;

    invoke-direct {v5, v3}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 698
    .end local v4    # "fileOutputStream":Ljava/io/FileOutputStream;
    .local v5, "fileOutputStream":Ljava/io/FileOutputStream;
    :try_start_1
    sget-object v11, Landroid/graphics/Bitmap$CompressFormat;->JPEG:Landroid/graphics/Bitmap$CompressFormat;

    const/16 v12, 0x64

    invoke-virtual {v7, v11, v12, v5}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z

    .line 700
    invoke-virtual {v3}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v11

    iput-object v11, p0, Lcom/example/m6shop/GoodsShowActivity;->UppicPath:Ljava/lang/String;

    .line 701
    const/4 v11, 0x1

    iput-boolean v11, p0, Lcom/example/m6shop/GoodsShowActivity;->is_shot:Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_4
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    .line 706
    if-eqz v5, :cond_4

    .line 708
    :try_start_2
    invoke-virtual {v5}, Ljava/io/FileOutputStream;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_3

    move-object v4, v5

    .line 715
    .end local v0    # "dir":Ljava/io/File;
    .end local v3    # "file":Ljava/io/File;
    .end local v5    # "fileOutputStream":Ljava/io/FileOutputStream;
    .end local v6    # "filename":Ljava/lang/String;
    .end local v9    # "saveDir":Ljava/lang/String;
    .end local v10    # "t":Ljava/text/SimpleDateFormat;
    .restart local v4    # "fileOutputStream":Ljava/io/FileOutputStream;
    :cond_2
    :goto_1
    sget-object v11, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v12, Ljava/lang/StringBuilder;

    const-string v13, "\u9009\u62e9\u76f8\u7247\u8def\u5f84:"

    invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v13, p0, Lcom/example/m6shop/GoodsShowActivity;->UppicPath:Ljava/lang/String;

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 716
    iget-object v11, p0, Lcom/example/m6shop/GoodsShowActivity;->UppicPath:Ljava/lang/String;

    if-eqz v11, :cond_0

    .line 719
    iget-object v11, p0, Lcom/example/m6shop/GoodsShowActivity;->mcontext:Landroid/content/Context;

    const-string v12, "\u4e0a\u4f20\u56fe\u7247"

    const-string v13, "\u8bf7\u7b49\u5f85.."

    invoke-static {v11, v12, v13}, Lmyclass/Util;->showDialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 720
    invoke-direct {p0}, Lcom/example/m6shop/GoodsShowActivity;->uploadFile()Z

    goto/16 :goto_0

    .line 703
    :catch_0
    move-exception v1

    .line 704
    .local v1, "e":Ljava/lang/Exception;
    :goto_2
    :try_start_3
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    .line 706
    if-eqz v4, :cond_2

    .line 708
    :try_start_4
    invoke-virtual {v4}, Ljava/io/FileOutputStream;->close()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1

    goto :goto_1

    .line 709
    :catch_1
    move-exception v1

    .line 710
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_1

    .line 705
    .end local v1    # "e":Ljava/lang/Exception;
    :catchall_0
    move-exception v11

    .line 706
    :goto_3
    if-eqz v4, :cond_3

    .line 708
    :try_start_5
    invoke-virtual {v4}, Ljava/io/FileOutputStream;->close()V
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_2

    .line 713
    :cond_3
    :goto_4
    throw v11

    .line 709
    :catch_2
    move-exception v1

    .line 710
    .restart local v1    # "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_4

    .line 709
    .end local v1    # "e":Ljava/lang/Exception;
    .end local v4    # "fileOutputStream":Ljava/io/FileOutputStream;
    .restart local v0    # "dir":Ljava/io/File;
    .restart local v3    # "file":Ljava/io/File;
    .restart local v5    # "fileOutputStream":Ljava/io/FileOutputStream;
    .restart local v6    # "filename":Ljava/lang/String;
    .restart local v9    # "saveDir":Ljava/lang/String;
    .restart local v10    # "t":Ljava/text/SimpleDateFormat;
    :catch_3
    move-exception v1

    .line 710
    .restart local v1    # "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    .end local v1    # "e":Ljava/lang/Exception;
    :cond_4
    move-object v4, v5

    .end local v5    # "fileOutputStream":Ljava/io/FileOutputStream;
    .restart local v4    # "fileOutputStream":Ljava/io/FileOutputStream;
    goto :goto_1

    .line 705
    .end local v4    # "fileOutputStream":Ljava/io/FileOutputStream;
    .restart local v5    # "fileOutputStream":Ljava/io/FileOutputStream;
    :catchall_1
    move-exception v11

    move-object v4, v5

    .end local v5    # "fileOutputStream":Ljava/io/FileOutputStream;
    .restart local v4    # "fileOutputStream":Ljava/io/FileOutputStream;
    goto :goto_3

    .line 703
    .end local v4    # "fileOutputStream":Ljava/io/FileOutputStream;
    .restart local v5    # "fileOutputStream":Ljava/io/FileOutputStream;
    :catch_4
    move-exception v1

    move-object v4, v5

    .end local v5    # "fileOutputStream":Ljava/io/FileOutputStream;
    .restart local v4    # "fileOutputStream":Ljava/io/FileOutputStream;
    goto :goto_2

    .line 651
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_2
        :pswitch_0
        :pswitch_3
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 24
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 136
    invoke-super/range {p0 .. p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 137
    const v21, 0x7f030009

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/example/m6shop/GoodsShowActivity;->setContentView(I)V

    .line 138
    invoke-virtual/range {p0 .. p0}, Lcom/example/m6shop/GoodsShowActivity;->getIntent()Landroid/content/Intent;

    move-result-object v15

    .line 139
    .local v15, "intent":Landroid/content/Intent;
    const-string v21, "typeid"

    move-object/from16 v0, v21

    invoke-virtual {v15, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    move-object/from16 v0, v21

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6shop/GoodsShowActivity;->typeid:Ljava/lang/String;

    .line 140
    const-string v21, "id"

    move-object/from16 v0, v21

    invoke-virtual {v15, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    move-object/from16 v0, v21

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6shop/GoodsShowActivity;->goodsid:Ljava/lang/String;

    .line 141
    const-string v21, "goodsname"

    move-object/from16 v0, v21

    invoke-virtual {v15, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 142
    .local v12, "goodsname":Ljava/lang/String;
    const-string v21, "count"

    move-object/from16 v0, v21

    invoke-virtual {v15, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    .line 143
    .local v10, "goodscount":Ljava/lang/String;
    const-string v21, "cost"

    move-object/from16 v0, v21

    invoke-virtual {v15, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 144
    .local v9, "goddscost":Ljava/lang/String;
    const-string v21, "bagcost"

    move-object/from16 v0, v21

    invoke-virtual {v15, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    move-object/from16 v0, v21

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6shop/GoodsShowActivity;->bagcost:Ljava/lang/String;

    .line 145
    const-string v21, "goodsimg"

    move-object/from16 v0, v21

    invoke-virtual {v15, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    .line 146
    .local v11, "goodsimg":Ljava/lang/String;
    invoke-virtual/range {p0 .. p0}, Lcom/example/m6shop/GoodsShowActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v21

    check-cast v21, Lmyapp/MyApp;

    move-object/from16 v0, v21

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6shop/GoodsShowActivity;->m:Lmyapp/MyApp;

    .line 147
    move-object/from16 v0, p0

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6shop/GoodsShowActivity;->mcontext:Landroid/content/Context;

    .line 148
    sput-object p0, Lcom/example/m6shop/GoodsShowActivity;->me:Lcom/example/m6shop/GoodsShowActivity;

    .line 149
    const/16 v21, 0x0

    move/from16 v0, v21

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/example/m6shop/GoodsShowActivity;->is_shot:Z

    .line 150
    invoke-virtual/range {p0 .. p0}, Lcom/example/m6shop/GoodsShowActivity;->getggSource()Z

    .line 151
    new-instance v21, Ljava/util/ArrayList;

    invoke-direct/range {v21 .. v21}, Ljava/util/ArrayList;-><init>()V

    move-object/from16 v0, v21

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6shop/GoodsShowActivity;->attr1:Ljava/util/List;

    .line 152
    new-instance v21, Ljava/util/ArrayList;

    invoke-direct/range {v21 .. v21}, Ljava/util/ArrayList;-><init>()V

    move-object/from16 v0, v21

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6shop/GoodsShowActivity;->attr2:Ljava/util/List;

    .line 153
    new-instance v21, Ljava/util/ArrayList;

    invoke-direct/range {v21 .. v21}, Ljava/util/ArrayList;-><init>()V

    move-object/from16 v0, v21

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6shop/GoodsShowActivity;->attr3:Ljava/util/List;

    .line 154
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/GoodsShowActivity;->m:Lmyapp/MyApp;

    move-object/from16 v21, v0

    invoke-virtual/range {v21 .. v21}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v4

    .line 155
    .local v4, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    move-object/from16 v0, p0

    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 156
    const v21, 0x7f070069

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/example/m6shop/GoodsShowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v21

    check-cast v21, Landroid/widget/ListView;

    move-object/from16 v0, v21

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6shop/GoodsShowActivity;->lv:Landroid/widget/ListView;

    .line 157
    const v21, 0x7f070070

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/example/m6shop/GoodsShowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v19

    check-cast v19, Landroid/widget/TextView;

    .line 158
    .local v19, "title_bar_name":Landroid/widget/TextView;
    move-object/from16 v0, v19

    invoke-virtual {v0, v12}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 159
    const-string v21, "userInfo"

    .line 160
    const/16 v22, 0x0

    .line 159
    move-object/from16 v0, p0

    move-object/from16 v1, v21

    move/from16 v2, v22

    invoke-virtual {v0, v1, v2}, Lcom/example/m6shop/GoodsShowActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v16

    .line 161
    .local v16, "preferences":Landroid/content/SharedPreferences;
    const-string v21, "uid"

    const-string v22, ""

    move-object/from16 v0, v16

    move-object/from16 v1, v21

    move-object/from16 v2, v22

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 162
    .local v3, "account":Ljava/lang/String;
    if-eqz v3, :cond_0

    const-string v21, ""

    move-object/from16 v0, v21

    invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    .line 169
    :cond_0
    const v21, 0x7f0701dd

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/example/m6shop/GoodsShowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v18

    check-cast v18, Landroid/widget/ImageView;

    .line 170
    .local v18, "title_bar_menu_btn":Landroid/widget/ImageView;
    new-instance v21, Lcom/example/m6shop/GoodsShowActivity$1;

    move-object/from16 v0, v21

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/example/m6shop/GoodsShowActivity$1;-><init>(Lcom/example/m6shop/GoodsShowActivity;)V

    move-object/from16 v0, v18

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 185
    const v21, 0x7f070007

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/example/m6shop/GoodsShowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v8

    check-cast v8, Landroid/widget/EditText;

    .line 186
    .local v8, "etgoodsname":Landroid/widget/EditText;
    invoke-virtual {v8, v12}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 188
    const v21, 0x7f070066

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/example/m6shop/GoodsShowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/EditText;

    .line 189
    .local v7, "etgoodscount":Landroid/widget/EditText;
    invoke-virtual {v7, v10}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 190
    const v21, 0x7f070067

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/example/m6shop/GoodsShowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/EditText;

    .line 191
    .local v6, "etgoodscost":Landroid/widget/EditText;
    invoke-virtual {v6, v9}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 193
    const v21, 0x7f070068

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/example/m6shop/GoodsShowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/EditText;

    .line 194
    .local v5, "etgoodsbagcost":Landroid/widget/EditText;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/GoodsShowActivity;->bagcost:Ljava/lang/String;

    move-object/from16 v21, v0

    move-object/from16 v0, v21

    invoke-virtual {v5, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 195
    const v21, 0x7f070062

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/example/m6shop/GoodsShowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v21

    check-cast v21, Landroid/widget/ImageView;

    move-object/from16 v0, v21

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/example/m6shop/GoodsShowActivity;->goodslogo:Landroid/widget/ImageView;

    .line 196
    if-eqz v11, :cond_1

    const-string v21, ""

    move-object/from16 v0, v21

    invoke-virtual {v11, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v21

    if-nez v21, :cond_1

    .line 199
    new-instance v21, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/GoodsShowActivity;->m:Lmyapp/MyApp;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v22

    invoke-static/range {v22 .. v22}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v22

    invoke-direct/range {v21 .. v22}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v21

    invoke-virtual {v0, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v21

    invoke-virtual/range {v21 .. v21}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    .line 201
    .local v14, "imgurl":Ljava/lang/String;
    sget-object v21, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v22, Ljava/lang/StringBuilder;

    const-string v23, "\u56fe\u7247\u5730\u5740:"

    invoke-direct/range {v22 .. v23}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v22

    invoke-virtual {v0, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v22

    invoke-virtual/range {v22 .. v22}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v22

    invoke-virtual/range {v21 .. v22}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 206
    new-instance v13, Lmyclass/ImageLoader;

    move-object/from16 v0, p0

    invoke-direct {v13, v0}, Lmyclass/ImageLoader;-><init>(Landroid/content/Context;)V

    .line 207
    .local v13, "imageLoader":Lmyclass/ImageLoader;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/GoodsShowActivity;->goodslogo:Landroid/widget/ImageView;

    move-object/from16 v21, v0

    move-object/from16 v0, v21

    invoke-virtual {v13, v14, v0}, Lmyclass/ImageLoader;->DisplayImage(Ljava/lang/String;Landroid/widget/ImageView;)V

    .line 209
    .end local v13    # "imageLoader":Lmyclass/ImageLoader;
    .end local v14    # "imgurl":Ljava/lang/String;
    :cond_1
    const v21, 0x7f070063

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/example/m6shop/GoodsShowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v20

    check-cast v20, Landroid/widget/Button;

    .line 212
    .local v20, "uploadbtn":Landroid/widget/Button;
    new-instance v21, Lcom/example/m6shop/GoodsShowActivity$2;

    move-object/from16 v0, v21

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/example/m6shop/GoodsShowActivity$2;-><init>(Lcom/example/m6shop/GoodsShowActivity;)V

    invoke-virtual/range {v20 .. v21}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 248
    const v21, 0x7f07006b

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/example/m6shop/GoodsShowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v17

    check-cast v17, Landroid/widget/TextView;

    .line 250
    .local v17, "savegoodsbtn":Landroid/widget/TextView;
    new-instance v21, Lcom/example/m6shop/GoodsShowActivity$3;

    move-object/from16 v0, v21

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/example/m6shop/GoodsShowActivity$3;-><init>(Lcom/example/m6shop/GoodsShowActivity;)V

    move-object/from16 v0, v17

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 282
    new-instance v21, Lcom/example/m6shop/GoodsShowActivity$4;

    move-object/from16 v0, v21

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/example/m6shop/GoodsShowActivity$4;-><init>(Lcom/example/m6shop/GoodsShowActivity;)V

    sput-object v21, Lcom/example/m6shop/GoodsShowActivity;->h:Landroid/os/Handler;

    .line 401
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/GoodsShowActivity;->mcontext:Landroid/content/Context;

    move-object/from16 v21, v0

    const-string v22, "\u8bf7\u7a0d\u540e"

    const-string v23, "\u63d0\u4ea4\u6570\u636e\u4e2d\u6570\u636e\u4e2d.."

    invoke-static/range {v21 .. v23}, Lmyclass/Util;->showDialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 402
    invoke-virtual/range {p0 .. p0}, Lcom/example/m6shop/GoodsShowActivity;->getSource()Z

    .line 403
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x0

    .line 1113
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 1114
    invoke-virtual {p0}, Lcom/example/m6shop/GoodsShowActivity;->finish()V

    .line 1117
    :cond_0
    return v1
.end method

.method public save()Z
    .locals 1

    .prologue
    .line 1121
    new-instance v0, Lcom/example/m6shop/GoodsShowActivity$10;

    invoke-direct {v0, p0}, Lcom/example/m6shop/GoodsShowActivity$10;-><init>(Lcom/example/m6shop/GoodsShowActivity;)V

    .line 1189
    invoke-virtual {v0}, Lcom/example/m6shop/GoodsShowActivity$10;->start()V

    .line 1190
    const/4 v0, 0x0

    return v0
.end method

.method public savegoods()Z
    .locals 1

    .prologue
    .line 488
    new-instance v0, Lcom/example/m6shop/GoodsShowActivity$6;

    invoke-direct {v0, p0}, Lcom/example/m6shop/GoodsShowActivity$6;-><init>(Lcom/example/m6shop/GoodsShowActivity;)V

    .line 569
    invoke-virtual {v0}, Lcom/example/m6shop/GoodsShowActivity$6;->start()V

    .line 570
    const/4 v0, 0x0

    return v0
.end method

.method public startPhotoZoom(Landroid/net/Uri;)V
    .locals 5
    .param p1, "uri"    # Landroid/net/Uri;

    .prologue
    const/16 v4, 0x96

    const/4 v3, 0x1

    .line 740
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.android.camera.action.CROP"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 741
    .local v0, "intent":Landroid/content/Intent;
    const-string v1, "image/*"

    invoke-virtual {v0, p1, v1}, Landroid/content/Intent;->setDataAndType(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent;

    .line 743
    const-string v1, "crop"

    const-string v2, "true"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 745
    const-string v1, "aspectX"

    invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 746
    const-string v1, "aspectY"

    invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 748
    const-string v1, "outputX"

    invoke-virtual {v0, v1, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 749
    const-string v1, "outputY"

    invoke-virtual {v0, v1, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 750
    const-string v1, "return-data"

    invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 751
    const/4 v1, 0x3

    invoke-virtual {p0, v0, v1}, Lcom/example/m6shop/GoodsShowActivity;->startActivityForResult(Landroid/content/Intent;I)V

    .line 752
    return-void
.end method
